import React, { useState, useEffect } from 'react';

import { Descriptions, Divider, Button } from 'antd';
import styles from './index.less';

import { menuList } from '@/global/home';

export default function Homes(props) {
  const { menuItemClick } = props;
  const [state, setState] = useState(0);
  const clickItem = () => {};
  return (
    <div className={styles.wrap}>
      {menuList.map((item) => {
        return (
          <div key={item.code} className={styles.listItem}>
            <Button
              type="link"
              onClick={() => {
                menuItemClick(item.code);
              }}
            >
              {item.tagName}
            </Button>
          </div>
        );
      })}
    </div>
  );
}
